namespace FytSoa.Application.Erp;

public class ErpProductStockInfoDto:ErpProductDto
{
    /// <summary>
    /// 库存数
    /// </summary>
    public int Count { get; set; }

    /// <summary>
    /// 仓库信息
    /// </summary>
    public List<ProductWarehouse> Warehouse { get; set; }=new ();

    /// <summary>
    /// 产品所属仓库
    /// </summary>
    public class ProductWarehouse
    {
        public long Id { get; set; } = 0;
        
        public long ProductId { get; set; } = 0;

        public string Name { get; set; }

        public int Count { get; set; } = 0;
    }
}